import {getRequest, postRequest} from '@/libs/axios'

export const login = ({username, password}) => {
    const data = {
        username,
        password
    }
    return postRequest('/api/user/login', data)
}

export const getUserInfo = () => {
    return getRequest('/api/user/getUserInfo')
}

export const logout = (token) => {
    return getRequest('/api/user/logout')
}
